package com.wander.designCreational.simplefactory.factory;

import com.wander.designCreational.simplefactory.product.Phone;

/**
 * @Author : WDYin
 * @Date : 2020/5/8
 * @Description :
 */
public class FactoryPlus {
    public static Phone getPhone(Class clazz) throws Exception {
        return (Phone) Class.forName(clazz.getName()).newInstance();
    }
}
